<template>
    <div>
        <navs :navtitle="title"></navs>
        <div class="titles">
            <p class="title-name">
                <span>收货人：李超</span>
                <span class="spn">15115115115</span>
            </p>
            <span class="location">昭昭便利生活超市中关村店</span>
            <p class="site">北京 北京市 延庆区 西三旗</p>
        </div>
        <div class="wrap">
            <div class="introduce" v-for="(item,index) in this.$store.state.order.orderDealerVoList" :key="index">
                <div class="introduce-top-wrap">
                    <div class="introduce-top">{{item.dealerName}}</div>
                </div>
                    <router-link class="introduce-img" tag="div" :to="{name:'detailedList',params:{index:index}}">
                            <div class="img-wrap">
                                <img :src="_item.picUrl" alt="" v-for="(_item,_index) in item.orderGoodsVos" :key="_index">
                            </div>
                            <div class="introduce-img-right">
                                <span>共8款</span>
                                <i class="iconfont icon-right"></i>
                            </div>            
                    </router-link>
                    <div class="introduce-zhifu">
                        <span class="zhifu-left">支付方式</span>
                        <div class="zhifu-right">
                            <span>在线支付</span>
                            <i class="iconfont icon-right"></i>
                        </div>
                    </div>
                <div class="introduce-remarks">订单备注</div>
                <div class="introduce-bottom">
                    <div>
                        <p class="bottom-sum">总金额：￥{{item.totalAmount}}</p>
                        <p class="bottom-yi">已省：-￥{{item.shopSavedPrice}}</p>
                    </div>
                </div>
            </div>
            <div class="submit">
                <div class="submit-left">
                    <span class="zi">应付金额：￥</span>
                    <span class="money">{{this.$store.state.order.totalAmount}}</span>
                </div>  
                <p class="submit-right">提交订单</p>
            </div>
        </div>
        <div class="Order-bottom"></div>
    </div>
</template>
<script>
import navs from '../../components/Navbar'
export default {
    components:{
        navs
    },
    data(){
        return{
            title:'确认订单',
        }
    },
    methods:{
    }
}
</script>
<style scoped lang="scss">
.titles{
    padding: 0.13rem;
    line-height: 0.14rem;
    .title-name{
        font-size: 0.14rem;
        color: #030303;
        font-weight: bold;
        .spn{
            margin-left: 0.19rem;
        }
    }
    .location{
        display: block;
        margin-top: 0.18rem;
        color: #333;
        font-size: 0.14rem;
    }
    .site{
        color: #666;
        font-size: 0.14rem;
        margin-top: 0.09rem;
        margin-bottom: 0.05rem;
    }
}
.wrap{
    .introduce{
        .introduce-top-wrap{
            padding-top: 0.1rem;
            background:#f8f8f8;
        }
        .introduce-top{
            line-height: 0.4rem;
            padding-left:0.14rem; 
            padding-right:0.15rem;
            height: 0.4rem;
            background: #fff;
            font-size: 0.14rem;
            color: #333;
        }
        .introduce-img{
            padding: 0.1rem 0.15rem 0.1rem 0.14rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #f2f1f6;
            background: #f2f1f6;
            .img-wrap{
                display: flex;
                flex: 1;
                overflow: hidden;
                overflow: scroll;
                img{
                    display: block;
                    width: 0.6rem;
                    height: 0.6rem;
                    background: pink;
                    margin-right: 0.1rem;
                }
            }
            .introduce-img-right{
                padding-left: 0.1rem;
                span{
                    font-size: 0.14rem;
                    color: #333;
                }
                .icon-right{
                    font-size: 0.16rem;
                    color: #ccc;
                }
            }
            
        }
        .introduce-zhifu{
            padding-left: 0.13rem;
            padding-right: 0.13rem;
            height: 0.4rem;
            line-height: 0.4rem; 
            border-bottom: 1px solid #f2f1f6;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .zhifu-left{
                font-size: 0.14rem;
                color: #666;
            }
            .zhifu-right{
                span{
                    font-size: 0.14rem;
                    color: #333;
                }
                .icon-right{
                    font-size: 0.16rem;
                    color: #ccc;
                }
            }
        }
        .introduce-remarks{
            padding-left: 0.13rem;
            font-size: 0.12rem;
            color: #666;
            height: 0.4rem;
            line-height: 0.4rem; 
            border-bottom: 1px solid #f2f1f6;
        }
        .introduce-bottom{
            height: 0.62rem;
            padding-right: 0.13rem;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            .bottom-sum{
                color: #333;
                font-weight: bold;
            }
            .bottom-yi{
                color: #dd3333;
                font-size: 0.12rem;
                text-align: right;
            }
        }
    }
    .submit{
        padding-left: 0.14rem;
        height: 0.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        width: 100%;
        left: 0;
        bottom: 0;
        background: rgba(255,255,255,0.90);
        box-shadow: inset 0 0 0 0 #E1E1E1;
        border-top: 1px solid #E1E1E1;
        .submit-left{
            .zi{
                color: #333;
            }
            .money{
                color: #dd3333;
                font-size: 0.2rem;
            }
        }
        .submit-right{
            width: 1.2rem;
            height: 0.5rem;
            text-align: center;
            line-height: 0.5rem;
            color: #fff;
            font-size: 0.18rem;
            background: #dd3333;
        }
    }
}
.Order-bottom{
    height: 0.5rem;
}
</style>
